#ifndef __TOOL_H
#define __TOOL_H
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>

uint16_t 	CRC16(char *buf, int len);
double str2num(char* in, int* point_num);

int int2str(int value, char* out);

int float2str(double value, int point_num, char* out);

int KMP(char *s,int s_len,char *t,int t_len);

#endif




